<?php
/**
 * 注册命名空间
 * Created by PhpStorm.
 * User: FredGui
 * Date: 2017/4/13
 * Time: 14:42
 */

$loader = new \Phalcon\Loader();

/**
 * 注册命名空间
 */
$loader -> registerNamespaces(array(
    'Gmm' => ROOT_PATH,

    'Gmm\App\Core' => ROOT_PATH . '/app/core',
    'Gmm\App\Helpers' => ROOT_PATH . '/app/helpers',
    'Gmm\App\Libs' => ROOT_PATH . '/app/libs',
    'Gmm\App\Service' => ROOT_PATH . '/app/service',
    'Gmm\App\Tasks' => ROOT_PATH . '/app/tasks',

    'Gmm\App\Mvc\Home' => ROOT_PATH . '/app/mvc/home',
    'Gmm\App\Mvc\Home\Controllers' => ROOT_PATH . '/app/mvc/home/controllers',
    'Gmm\App\Mvc\Home\Models' => ROOT_PATH . '/app/mvc/home/models',
    'Gmm\App\Mvc\Home\Repositories' => ROOT_PATH . '/app/mvc/home/repositories',

//    'Gmm\App\Backend\Controllers' => ROOT_PATH . '/app/backend/controllers',
//    'Gmm\App\Backend\Models' => ROOT_PATH . '/app/backend/models',
//    'Gmm\App\Backend\Repositories' => ROOT_PATH . '/app/backend/repositories',
)) -> register();